using UnityEngine;
using System.Collections;

public class Run : MonoBehaviour {

    public Transform TargetObject = null;
 
    void Start () {
        if (TargetObject != null)
        {
            GetComponent<UnityEngine.AI.NavMeshAgent>().destination = TargetObject.position;
        }
    } 
    void Update () {
        
    }
}